package com.xdu.yunwufog.connection.utils;

import java.net.InetSocketAddress;

public class ConnectionUtil {

    public static final InetSocketAddress USER_AUTH = new InetSocketAddress("172.17.17.2",26020);

    public static final InetSocketAddress BIO_AUTH = new InetSocketAddress("172.17.17.2",26005);
    public static final InetSocketAddress BIO_REGISTER = new InetSocketAddress("172.17.17.2",26002);

    public static final InetSocketAddress LIVE_CHECK = new InetSocketAddress("172.17.0.202",2029);

    public static final InetSocketAddress[] ADDRESSES = new InetSocketAddress[]{USER_AUTH,BIO_AUTH,BIO_REGISTER,LIVE_CHECK};

    public static final int CORE_SIZE = Runtime.getRuntime().availableProcessors() * 2;
    // 每个地址对应的连接池大小
    public static final int[] CHANNEL_POOL_CONN_NUM = new int[]{CORE_SIZE, CORE_SIZE, 2, CORE_SIZE};



}
